/**
 *
 * @author marc.molins.piulachs
 */

package domain;

public class UserStatistics extends Statistics {

	private int _nominalizedTexts;
	private int _learntRules;
	private int _learntPairs;
	private int _addedVerbs;
	private double _verbsMean;
    private static UserStatistics singleton;


	public static UserStatistics getInstance() {
		if(singleton == null) {
			singleton = new UserStatistics();
		}
		return singleton;
	}


	public UserStatistics() {
		_nominalizedTexts = 0;
		_learntRules = 0;
		_learntPairs = 0;
		_addedVerbs = 0;
		_verbsMean = 0.0;
	}

	public int getNominalizedTexts() {
		return _nominalizedTexts;
	}

	public int getLearntRules() {
		return _learntRules;
	}

	public int getLearntPairs() {
		return _learntPairs;
	}

	public int getAddedVerbs() {
		return _addedVerbs;
	}

	public double getVerbsMean() {
		return _verbsMean;
	}


	
	public void setNominalizedTexts(int nt) {
		_nominalizedTexts = nt;
	}

	public void setLearntRules(int lr) {
		_learntRules = lr;
	}

	public void setLearntPairs(int lp) {
		_learntPairs = lp;
	}

	public void setAddedVerbs(int av) {
		_addedVerbs = av;
	}

	public void setVerbsMean(double va) {
		_verbsMean = va;
	}



	public void increaseNominalizedTexts(int nt) {
		_nominalizedTexts += nt;
	}
	
	public void increaseLearntRules(int lr) {
		_learntRules += lr;
	}

	public void increaseLearntPairs(int lp) {
		_learntPairs += lp;
	}

	public void increaseAddedVerbs(int av) {
		_addedVerbs += av;
	}




//	public void computeAndSetVerbsAverage() {
//
//	}

}
